import request from '@/utils/request'
/**
 * @description 编辑分销
 * @param
 * @returns
 */
export async function toEditProduct(data) {
    return request({
        url: '/supplier/activity.Agent/edit',
        method: 'get',
        data,
    });
}
/**
 * @description 编辑分销
 * @param
 * @returns
 */
export async function editProduct(data) {
    return request({
        url: '/supplier/activity.Agent/edit',
        method: 'post',
        data,
    });
}
/**
 * @description 分销列表
 * @param
 * @returns
 */
export async function getList(data) {
    return request({
        url: '/supplier/activity.Agent/product',
        method: 'get',
        data,
    });
}
/**
 * @description 设置分销
 * @param
 * @returns
 */
export async function setAgent(data) {
    return request({
        url: '/supplier/activity.Agent/setAgent',
        method: 'post',
        data,
    });
}

